package com.qf.service.impl;

import com.qf.dao.RegistrationDao;
import com.qf.pojo.Registration;
import com.qf.service.RegistrationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class RegistrationServiceImpl implements RegistrationService {
    @Autowired
    private RegistrationDao registrationDao;
    @Override
    public List<Registration> select(Registration registration) {
        return registrationDao.select(registration);
    }

    @Override
    public int insert(Registration registration) {
        return registrationDao.insert(registration);
    }

    @Override
    public int update(Registration registration) {
        return registrationDao.update(registration);
    }

    @Override
    public int delete(List<Integer> list) {
        return registrationDao.delete(list);
    }

    @Override
    public List<Registration> selectAll(Registration registration) {
        return registrationDao.selectAll(registration);
    }
}
